
// 用户通过微信code 登录获取token
export const login = (data) => uni.$u.http.post('/rest/app/login', data)
// export const login = (data) => uni.$u.http.post('/login', data)

//获取手机型号列表
export const getphoneModel = (params) => uni.$u.http.get('/rest/app/material/treeList?type=11')

// 手机号授权
export const decryptPhoneNumber = (data) => uni.$u.http.post('/rest/app/user/decryptPhoneNumber', data)

// 设置默认手机型号
export const setDefaultPhoneModel = (data) => uni.$u.http.post('/rest/app/user/phoneModel/setDefault', data)

// 埋点事件
export const eventTrackingInsert = (data) => uni.$u.http.post('/rest/app/eventTracking/insert', data)

